//
//  UIView+HKAddViewExtension.m
//  KSBridgeDesign
//
//  Created by huzhaoke on 2021/7/19.
//

#import "UIView+HKAddViewExtension.h"

@implementation UIView (HKAddViewExtension)

- (UIView* (^)(UIView *))hk_AddSubview {
    return ^UIView *(UIView *subview){
        [self addSubview:subview];
        return self;
    };
}

- (UIView *(^)(NSArray *))hk_AddSubviews {
    return ^UIView *(NSArray *subviews){
        for (id obj in subviews) {
            if ([obj isKindOfClass:[UIView class]]) {
                [self addSubview:obj];
            }
        }
        return self;
    };
}


@end
